<!DOCTYPE html>
<html>
<head>
    <title>欢迎光临花间村</title>
    <style>
        .homepage-image {
            width: 100%;
            max-width: 2000px;
            height: auto;
            display: block;
            margin: 0 auto;
        }
        
        .login-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
        }
        
        .login-button {
            background-color: rgba(255, 255, 255, 0.9);
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            color: #333;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .login-button:hover {
            background-color: #fff;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .about-container {
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 1000;
        }

        .about-button {
            background-color: rgba(255, 255, 255, 0.9);
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            color: #333;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .about-button:hover {
            background-color: #fff;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        /* 对话框样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 2000;
        }

        .modal-content {
            position: relative;
            background-color: #fff;
            margin: 15% auto;
            padding: 20px;
            width: 70%;
            max-width: 500px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .close-button {
            position: absolute;
            right: 20px;
            top: 10px;
            font-size: 24px;
            cursor: pointer;
            color: #666;
        }

        .close-button:hover {
            color: #333;
        }

        /* 添加备案信息样式 */
        .beian-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            text-align: right;
        }

        .beian-info {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            line-height: 1.6;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }

        .beian-info:hover {
            color: #fff;
        }

        .beian-info img {
            vertical-align: middle;
            margin-right: 3px;
        }
    </style>
</head>
<body>
    <div class="login-container">
        @auth
            <a href="{{ url('/home') }}" class="login-button">控制台</a>
        @else
            <a href="{{ route('login') }}" class="login-button">登录</a>
        @endauth
    </div>
    <img src="{{ asset('images/homepage.jpg') }}" alt="首页图片" class="homepage-image">
    <div class="about-container">
        <button class="about-button" onclick="openModal()">关于我们</button>
    </div>

    <!-- 关于我们对话框 -->
    <div id="aboutModal" class="modal">
        <div class="modal-content">
            <span class="close-button" onclick="closeModal()">&times;</span>
            <h2>关于我们</h2>
            <p>花间村，位于美丽的江南水乡，是一个充满诗意与温情的特色村落。这里不仅保留着传统的建筑风貌，更传承着独特的文化底蕴。</p>
            <p>我们致力于将传统文化与现代生活完美融合，为游客提供独特的文化体验和优质的旅游服务。</p>
            <p>欢迎您来到花间村，感受这里的美好时光。</p>
            <div style="margin-top: 20px; color: #666; line-height: 1.8;">
                <p><strong>地址：</strong>浙江省湖州市德清县禹越镇高桥村立安路666号</p>
                <p><strong>电话：</strong>400-820-7176</p>
            </div>
        </div>
    </div>

    <!-- 添加备案信息 -->
    <div class="beian-container">
        <div>
            <a href="https://beian.miit.gov.cn/" target="_blank" class="beian-info">
                浙ICP备2021010156号-1
            </a>
        </div>
        <div>
            <a href="http://www.beian.gov.cn/portal/registerSystemInfo" target="_blank" class="beian-info">
                <img src="{{ asset('images/beian.jpg') }}" alt="公安备案图标">
                浙公网安备 33052102000597号
            </a>
        </div>
    </div>

    <script>
        function openModal() {
            document.getElementById('aboutModal').style.display = 'block';
        }

        function closeModal() {
            document.getElementById('aboutModal').style.display = 'none';
        }

        // 点击对话框外部关闭对话框
        window.onclick = function(event) {
            var modal = document.getElementById('aboutModal');
            if (event.target == modal) {
                modal.style.display = 'none';
            }
        }
    </script>
</body>
</html>
